﻿Imports System.IO


<ServiceContract()> _
<ServiceKnownType(GetType(Atom10FeedFormatter))> _
<ServiceKnownType(GetType(Rss20FeedFormatter))> _
Public Interface IComicService

    '<OperationContract()> _
    '<WebGet(UriTemplate:="*", BodyStyle:=WebMessageBodyStyle.Bare)> _
    'Function CreateFeed() As SyndicationFeedFormatter


    ''' <summary>
    ''' 显示帮助
    '''</summary>
    ''' <remarks></remarks>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetDocumentation)> _
     Function GetDocumentation() As Stream



    '''<summary>获取漫画列表</summary>
    '''<remarks>返回漫画列表 Feed RSS</remarks>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicsAsRss)> _
    Function GetComicsAsRss() As Rss20FeedFormatter


    '''<summary>获取漫画列表</summary>
    '''<remarks>返回漫画列表 Feed Atom</remarks>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicsAsAtom)> _
    Function GetComicsAsAtom() As Atom10FeedFormatter



    '''<summary>获取漫画列表（默认）</summary>
    '''<remakrs>返回漫画列表 Feed 默认格式</remakrs>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComics)> _
    Function GetComicsinDefaultFormat() As SyndicationFeedFormatter





    '''<summary>获取漫画</summary>
    '''<remarks>返回指定漫画 Feed RSS</remarks>
    ''' <param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicAsRss)> _
    Function GetComicAsRss(ByVal comicId As String) As Rss20FeedFormatter


    '''<summary>获取漫画</summary>
    '''<remarks>返回指定漫画 Feed Atom</remarks>
    ''' <param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicAsAtom)> _
    Function GetComicAsAtom(ByVal comicId As String) As Atom10FeedFormatter



    ''''<summary>获取漫画（默认）</summary>
    ''''<remakrs>返回指定漫画 Feed 默认格式</remakrs>
    '''' <param name="comicId">漫画Id</param>
    '<OperationContract()> _
    '<WebGet(UriTemplate:=ServiceUris.GetComic)> _
    'Function GetComicinDefaultFormat(ByVal comicId As String) As SyndicationFeedFormatter


    '''<summary>获取漫画（默认）</summary>
    '''<remakrs>返回指定漫画 Feed 默认格式</remakrs>
    ''' <param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComic)> _
    Function GetComic(ByVal comicId As String) As Stream





    '''<summary>获取卷（Vols）</summary>
    '''<remarks>返回漫画的卷 Feed RSS</remarks>
    ''' <param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicVolsAsRss)> _
    Function GetComicVolsAsRss(ByVal comicId As String) As Rss20FeedFormatter


    '''<summary>获取卷（Vols）</summary>
    '''<remarks>返回漫画的卷 Feed Atom</remarks>
    ''' <param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicVolsAsAtom)> _
    Function GetComicVolsAsAtom(ByVal comicId As String) As Atom10FeedFormatter



    '''<summary>获取卷（Vols）（默认）</summary>
    '''<remakrs>返回漫画的卷 </remakrs>
    ''' <param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicVols)> _
    Function GetComicVols(ByVal comicId As String) As SyndicationFeedFormatter





    '''<summary>获取章（Chapters）</summary>
    '''<remarks>返回漫画的章 Feed RSS</remarks>
    ''' <param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicChaptersAsRss)> _
    Function GetComicChaptersAsRss(ByVal comicId As String) As Rss20FeedFormatter


    '''<summary>获取章（Chapters）</summary>
    '''<remarks>返回漫画的章 Feed Atom</remarks>
    ''' <param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicChaptersAsAtom)> _
    Function GetComicChaptersAsAtom(ByVal comicId As String) As Atom10FeedFormatter



    '''<summary>获取章（Chapters）（默认）</summary>
    '''<remakrs>返回漫画的章 Feed 默认格式</remakrs>
    ''' <param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicChapters)> _
    Function GetComicChapters(ByVal comicId As String) As SyndicationFeedFormatter






    '''<summary>获取卷（Vol）</summary>
    '''<remarks>返回漫画的卷 Feed RSS</remarks>
    '''<param name="comicId">漫画Id</param>
    '''<param name="volId">卷 Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicVolAsRss)> _
    Function GetComicVolAsRss(ByVal comicId As String, ByVal volId As String) As Rss20FeedFormatter


    '''<summary>获取卷（Vol）</summary>
    '''<remarks>返回漫画的卷 Feed Atom</remarks>
    '''<param name="comicId">漫画Id</param>
    '''<param name="volId">卷 Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicVolAsAtom)> _
    Function GetComicVolAsAtom(ByVal comicId As String, ByVal volId As String) As Atom10FeedFormatter



    ''''<summary>获取卷（Vol）（默认）</summary>
    ''''<remakrs>返回漫画的卷 Feed 默认格式</remakrs>
    '''' <param name="comicId">漫画Id</param>
    ''''<param name="volId">卷 Id</param>
    '<OperationContract()> _
    '<WebGet(UriTemplate:=ServiceUris.GetComicvol)> _
    'Function GetComicVolinDefaultFormat(ByVal comicId As String, ByVal volId As String) As SyndicationFeedFormatter


    '''<summary>获取卷（Vol）</summary>
    '''<remakrs>返回漫画的卷 </remakrs>
    ''' <param name="comicId">漫画Id</param>
    '''<param name="volId">卷 Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicVol)> _
    Function GetComicVol(ByVal comicId As String, ByVal volId As String) As Stream






    '''<summary>获取章（Chapter）</summary>
    '''<remarks>返回漫画的章 Feed RSS</remarks>
    '''<param name="comicId">漫画Id</param>
    '''<param name="chapterId">章Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicChapterAsRss)> _
    Function GetComicChapterAsRss(ByVal comicId As String, ByVal chapterId As String) As Rss20FeedFormatter


    '''<summary>获取章（Chapter）</summary>
    '''<remarks>返回漫画的章 Feed Atom</remarks>
    '''<param name="comicId">漫画Id</param>
    '''<param name="chapterId">章Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicChapterAsAtom)> _
    Function GetComicChapterAsAtom(ByVal comicId As String, ByVal chapterId As String) As Atom10FeedFormatter



    ''''<summary>获取章（Chapter）（默认）</summary>
    ''''<remakrs>返回漫画的章 Feed 默认格式</remakrs>
    ''''<param name="comicId">漫画Id</param>
    ''''<param name="chapterId">章Id</param>
    '<OperationContract()> _
    '<WebGet(UriTemplate:=ServiceUris.GetComicChapter)> _
    'Function GetComicChapterinDefaultFormat(comicId As String, chapterId as String) As SyndicationFeedFormatter


    '''<summary>获取章（Chapter）</summary>
    '''<remakrs>返回漫画的章</remakrs>
    '''<param name="comicId">漫画Id</param>
    '''<param name="chapterId">章Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicChapter)> _
    Function GetComicChapter(ByVal comicId As String, ByVal chapterId As String) As Stream




    '''<summary>获取图片</summary>
    '''<remakrs>返回指定的图片</remakrs>
    '''<param name="comicId">漫画Id</param>
    '''<param name="chapterId">章Id</param>
    '''<param name="pictureId">图片Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetPictureFromChapter)> _
    Function GetPictureFromChapter(ByVal ComicId As String, ByVal chapterId As String, ByVal pictureId As String) As Stream


    '''<summary>获取图片</summary>
    '''<remakrs>返回指定的图片</remakrs>
    '''<param name="comicId">漫画Id</param>
    '''<param name="volId">卷 Id</param>
    '''<param name="pictureId">图片Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetPictureFromVol)> _
    Function GetPictureFromVol(ByVal comicId As String, ByVal volId As String, ByVal pictureId As String) As Stream


    '''<summary>获取缩略图</summary>
    '''<remakrs>返回指定图片的缩略图</remakrs>
    '''<param name="comicId">漫画Id</param>
    '''<param name="chapterId">章Id</param>
    '''<param name="pictureId">图片Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetPictureThumbnailFromChapter)> _
    Function GetPictureThumbnailFromChapter(ByVal ComicId As String, ByVal chapterId As String, ByVal pictureId As String) As Stream


    '''<summary>获取缩略图</summary>
    '''<remakrs>返回指定图片的缩略图</remakrs>
    '''<param name="comicId">漫画Id</param>
    '''<param name="volId">卷 Id</param>
    '''<param name="pictureId">图片Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetPictureThumbnailFromVol)> _
    Function GetPictureThumbnailFromVol(ByVal comicId As String, ByVal volId As String, ByVal pictureId As String) As Stream






    '''<summary>获取漫画图片</summary>
    '''<remakrs>返回指定图片</remakrs>
    '''<param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicImage)> _
    Function GetComicImage(ByVal comicId As String) As Stream


    '''<summary>获取卷图片</summary>
    '''<remakrs>返回指定图片</remakrs>
    '''<param name="comicId">漫画Id</param>
    '''<param name="volId">卷 Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetVolImage)> _
    Function GetVolImage(ByVal comicId As String, ByVal volId As String) As Stream

    '''<summary>获取章图片</summary>
    '''<remakrs>返回指定图片</remakrs>
    '''<param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetChapterImage)> _
    Function GetChapterImage(ByVal ComicId As String, ByVal chapterId As String) As Stream



    '''<summary>获取漫画图片</summary>
    '''<remakrs>返回指定图片的缩略图</remakrs>
    '''<param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetComicThumbnailImage)> _
    Function GetComicThumbnailImage(ByVal comicId As String) As Stream


    '''<summary>获取卷图片</summary>
    '''<remakrs>返回指定图片的缩略图</remakrs>
    '''<param name="comicId">漫画Id</param>
    '''<param name="volId">卷 Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetVolThumbnailImage)> _
    Function GetVolThumbnailImage(ByVal comicId As String, ByVal volId As String) As Stream

    '''<summary>获取章图片</summary>
    '''<remakrs>返回指定图片的缩略图</remakrs>
    '''<param name="comicId">漫画Id</param>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetChapterThumbnailImage)> _
    Function GetChapterThumbnailImage(ByVal ComicId As String, ByVal chapterId As String) As Stream


    ''' <summary>
    ''' 获取资源
    ''' </summary>
    ''' <param name="name">资源名字</param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetResource)> _
    Function GetResource(ByVal name As String) As Stream


    ''' <summary>
    ''' 获取版本
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    <OperationContract()> _
    <WebGet(UriTemplate:=ServiceUris.GetVersion)> _
    Function GetVerstion() As Stream



End Interface